﻿using System;
using AYQQMGR2018.Views.Shared;

namespace 小工具.Views.Shared.creator
{
    public class SystemToolCreator : BaseAyToolBoxExtraRightButtonCreator<int, System.System>
    {
        public override AyToolBoxExtraRightButton CreateBtn(System.System value)
        {
            AyToolBoxExtraRightButton btn = CreateBtn(value, value.GetName(), value.GetImagePath());
            btn.Click += Btn_Click;
            return btn;
        }

        private void Btn_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            AyToolBoxExtraRightButton btn = sender as AyToolBoxExtraRightButton;
            System.System sys = (System.System)btn.Value;
            sys.DoWork();
        }

        public override AyToolBoxExtraRightButton CreateBtn(int t)
        {
            throw new NotImplementedException();
        }

        protected override System.System GetValue(int t)
        {
            throw new NotImplementedException();
        }
    }
}
